```
Feature: Basic admin's features
Scenario: Create a user by email/password with valid admin token
When I create a user with a valid admin token
Then I should get status 200
Scenario: Create a user by email/password with invalid admin token
When I create a user with an invalid admin token
Then I should get status 403
```
| Summary Item | Total | Failed |
|---|---|---|
| Requests | 5 | 0 |
| Prerequest Scripts | 7 | 0 |
| Test Scripts | 10 | 0 |
| Assertions | 7 | 7 |
| Skipped Tests | 0 | - |
expected response to have status code 200 but got 503
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
expected response to have status code 200 but got 503
expected response to have status code 200 but got 503
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
expected response to have status code 403 but got 503
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
| Header Name | Header Value |
|---|---|
| Content-Type | application/x-www-form-urlencoded |
| Pragma | no-cache |
| Accept | application/json, text/plain, */* |
| Host | varnish |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | 0d66a640-f605-4906-88ad-24238aac3847 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 211 |
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"admin@whoozer.fr","password":"wh00zerp0w3r","scope":"mobile_app admin_scopes"}
| Header Name | Header Value |
|---|---|
| Date | Wed, 04 Aug 2021 07:20:48 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 282 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 66210</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Connect endpoint should return 200 when login with valid admin | 0 | 1 | 0 |
| Connect endpoint should return access_token and refresh_token | 0 | 1 | 0 |
| Total | 0 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Connect endpoint should return 200 when login with valid admin | |
| Connect endpoint should return access_token and refresh_token | |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json, text/plain, */* |
| Authorization | OAuth="" |
| Accept-Encoding | br, gzip, deflate |
| Host | api-preprod.happn.com |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | c468e0bf-fa89-4722-a92a-6c83cf86ece4 |
| Connection | keep-alive |
| Content-Length | 179 |
{
"type": "CLIENT",
"gender": "female",
"login": "main.user_1628061648482@example.com",
"first_name": "fake",
"last_name": "user",
"password": "00000000"
}
| Header Name | Header Value |
|---|---|
| Date | Wed, 04 Aug 2021 07:20:51 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 282 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 66212</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Admin user can create a new user | 0 | 1 | 0 |
| Total | 0 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Admin user can create a new user | |
| Header Name | Header Value |
|---|---|
| Content-Type | application/x-www-form-urlencoded |
| Pragma | no-cache |
| Accept | application/json, text/plain, */* |
| Host | varnish |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | f55896d3-259e-4ea5-96bb-687ebe658614 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 211 |
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"main.user_1628061648482@example.com","password":"00000000","scope":"mobile_app"}
| Header Name | Header Value |
|---|---|
| Date | Wed, 04 Aug 2021 07:20:52 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 283 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 524684</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Connect endpoint should return 200 when login with created user | 0 | 1 | 0 |
| Connect endpoint should return access_token and refresh_token for a user | 0 | 1 | 0 |
| Total | 0 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Connect endpoint should return 200 when login with created user | |
| Connect endpoint should return access_token and refresh_token for a user | |
| Header Name | Header Value |
|---|---|
| Host | varnish |
| CF-IPCountry | FR |
| Cookie | |
| Authorization | OAuth="" |
| User-Agent | PostmanRuntime/7.26.8 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 70c01590-f506-4742-b93d-d608f6c965ff |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Date | Wed, 04 Aug 2021 07:20:52 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 283 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 524686</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json, text/plain, */* |
| Authorization | OAuth="invalidToken" |
| Accept-Encoding | br, gzip, deflate |
| Host | api-preprod.happn.com |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | f68d47ee-d208-4ac6-a07c-f6844b29ae40 |
| Connection | keep-alive |
| Content-Length | 179 |
{
"type": "CLIENT",
"gender": "female",
"login": "main.user_1628061652373@example.com",
"first_name": "fake",
"last_name": "user",
"password": "00000000"
}
| Header Name | Header Value |
|---|---|
| Date | Wed, 04 Aug 2021 07:20:55 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 283 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 622953</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| User creation returns 403 when using invalid admin token | 0 | 1 | 0 |
| Error code should be invalid_token | 0 | 1 | 0 |
| Total | 0 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| User creation returns 403 when using invalid admin token | |
| Error code should be invalid_token | |